/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
/* Copyright (C) 2012 Zongyou Yao. All rights reserved.     */

#include "ring.h"
#include "unittest.h"

int main(int argc, char **argv)
{
    ring_t ring = ring_ring("hello", "world", NULL);
    ASSERT_TRUE(ring != NULL);

    char *p = NULL;
    while (ring_length(ring) > 0) {
        p = ring_remlo(ring);
        if (p != NULL) {
            printf("%s\n", p);
        }
    }

    ring_free(&ring);

    return 0;
}
